package day03.homework;

public class OperDemo6 {
    public static void main(String[] args) {
        int num = 10;
        int flag = num>0 ? 1:0;
        System.out.println(flag);//1
        System.out.println("-------------------------------");
        int a = 15,b=17;
        int max = a>b ? a:b;
        System.out.println("max="+max);//17
        int c = 20;
        int max1 = a>b ? (a>c ? a:c):(b>c ? b:c);
        System.out.println(max1);//20
    }
}
